package lp.xian.materials.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请购单数据对象 lp_requisition_table
 *
 * @author ruoyi
 * @date 2023-08-05
 */
@Data
public class RequisitionTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String requisitionTableSpeion;



    /** 采购数据id */
    private Integer requisitionTableId;

    /** 采购单id */
    @Excel(name = "采购单id")
    private Integer requisitionId;

    /** 存货编号 */
    @Excel(name = "存货编号")
    private String requisitionOrderNo;

    /** 存货名称 */
    @Excel(name = "存货名称")
    private String requisitionTableName;

    /** 单位 */
    @Excel(name = "单位")
    private String requisitionTableUnit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal requisitionTablePrice;

    /** 单价 */
    @Excel(name = "数量")
    private Integer requisitionTableNum;


    /** 税合计 */
    @Excel(name = "税合计")
    private BigDecimal requisitionTableTotal;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal requisitionTableTax;

    /** 需求日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "需求日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requisitionTableDate;

    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("requisitionTableSpeion", getRequisitionTableSpeion())
                .append("requisitionTableId", getRequisitionTableId())
                .append("requisitionId", getRequisitionId())
                .append("requisitionOrderNo", getRequisitionOrderNo())
                .append("requisitionTableName", getRequisitionTableName())
                .append("requisitionTableNum", getRequisitionTableNum())
                .append("requisitionTableUnit", getRequisitionTableUnit())
                .append("requisitionTablePrice", getRequisitionTablePrice())
                .append("requisitionTableTotal", getRequisitionTableTotal())
                .append("requisitionTableTax", getRequisitionTableTax())
                .append("requisitionTableDate", getRequisitionTableDate())
                .append("supplierId", getSupplierId())
                .toString();
    }
}
